package example.strategy.irreversible;

import com.scop.desensitize.strategy.irreversible.PhoneStrtegy;
import org.apache.log4j.Logger;

import java.security.NoSuchAlgorithmException;

/**
 * @desc：
 * @author： QGP
 * @create： 2022/4/28 11:14
 */
public class PhoneDemo {
    public static Logger log = Logger.getLogger(PhoneDemo.class);
    public static void main(String[] args) throws NoSuchAlgorithmException {

        String phoneNumber = "15133886677";
        String encodeNumber = PhoneStrtegy.getInstance().encode(phoneNumber);
        log.debug("加密后的手机号---》"+encodeNumber);
    }
}
